//
//  CLGlobleDataModel.h
//  chanlin
//
//  Created by Ryan on 14-11-22.
//  Copyright (c) 2014年 chanlin. All rights reserved.
//

#import "CLDataModel.h"
#import "WXApi.h"
#import "TencentOpenAPI/TencentOAuthObject.h"
#import "TencentOpenAPI/QQApiInterfaceObject.h"
#import "TencentOpenAPI/TencentMessageObject.h"
#import "TencentOpenAPI/QQApiInterface.h"
#import <TencentOpenAPI/TencentOAuth.h>
#import "UMSocialSnsService.h"
#import "UMSocialControllerService.h"
#import "UMSocial.h"

@interface CLGlobleDataModel : CLDataModel<WXApiDelegate,UMSocialUIDelegate>

@property (nonatomic,copy) void (^block)(BOOL success,NSString *message) ;

@property (nonatomic, strong)TencentOAuth *oauth;

@property (nonatomic,unsafe_unretained)BOOL isSinaBind;
@property (nonatomic,unsafe_unretained)BOOL isNotPush;

SGR_SINGLETION(CLGlobleDataModel)

- (void)share2Wechat:(UIImage *)icon
               title:(NSString *)title
             content:(NSString *)content
                 url:(NSString *)url
          captureImg:(UIImage *)img
             uiBlock:(void (^)(BOOL success,NSString *message) )block;

- (void)shareMessage:(int )type content:(NSString *)content;

- (void)share2pengyou:(UIImage *)icon
                title:(NSString *)title
              content:(NSString *)content
                  url:(NSString *)url
          captureImg:(UIImage *)img
              uiBlock:(void (^)(BOOL success,NSString *message) )block;

- (void)share2QQ:(UIImage *)icon
           title:(NSString *)title
         content:(NSString *)content
             url:(NSString *)url
    captureImage:(UIImage *)captureImage
        thumbImg:(UIImage *)thumbImg
         uiBlock:(void (^)(BOOL success,NSString *message) )block;

- (void)share2Sina:(NSString *)content
               url:(NSString *)url
        controller:(UIViewController *)ctrl
      captureImage:(UIImage *)captureImage
           uiBlock:(void (^)(BOOL success,NSString *message) )block;

- (void)loginOutSinaBlock:(void (^)(BOOL success))block;
- (void)loginInSinaBlock:(void (^)(BOOL success))block;

- (void)registPush;
- (void)unRegistPush;

- (void)updateMenu;

- (void)shareMessage:(int )type content:(NSString *)content;

@end
